﻿@using Huirui.Cavan.Domain.MainBoundedContext.SalesModule
@model Huirui.Cavan.Presentation.ViewModel.SalesModule.ISalesViewModel
<div id="selectStockWindowFromSales" class="easyui-window" data-options="closed:true,minimizable:false,maximizable:false,collapsible:false,title:'@Html.Raw("按销售退货")',modal:true" style="width: 900px; height: 600px; padding: 2px;">
    <div>
        @using (Html.BeginForm(ActionConst.STOCKSFROMSALES, ControllerConst.STOCK, FormMethod.Post, new { id = "searchStockFromSales" }))
        {
            <label>日期:</label>
            @Html.TextBoxFor(m => m.SearchParam.StartDate)@Html.Raw("至")@Html.TextBoxFor(m => m.SearchParam.EndDate) 
            <label>存货或服务:</label>
            @Html.TextBoxFor(m => m.SearchParam.StockCode)
            <label>编号:</label>
            @Html.TextBoxFor(m => m.SearchParam.ID, new { id = "salesCode" })
            <input type="submit" value="查询订单" id="queryStocksFromSales" />
            <input type="button" value="确定存货" id="doSelectStocksFromSales" />
        }
        <table id="stocksFromSales">
        </table>
    </div>
</div>
